Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickDraw GX Printing /
Chapter 3 - Page Formatting and Dialog Box Customization / Page Formatting and Dialog Box Customization Reference
Panel-Related Constants and Data Types


The Panel Information Structure

The panel information structure, of data type gxPanelInfoRecord, provides information to the panel about the current dialog box and panel event. This structure is used with the GXHandlePanelEvent and GXFilterPanelEvent override functions, whose descriptions begin on page 3-123.

struct gxPanelInfoRecord {
   gxPanelEvent   panelEvt;
   short          panelResId;    
   DialogPtr      pDlg; 
   EventRecord    *theEvent;
   short          itemHit;
   short          itemCount;
   short          evtAction;  
   short          errorStringId;    
   gxFormat       theFormat;
   void           *refCon;    
};
Field Description
panelEvt
The event to filter or handle.
panelResId
The resource ID of the current panel (gxPrintPanelType) resource.
pDlg
A pointer to the dialog box structure.
theEvent
A pointer to the event that occurred.
itemHit
The actual item number where the event occurred, using the item-numbering scheme of the Dialog Manager.
itemCount
The item count before your panel's items in the dialog box.
evtAction
The action that results once this event is processed. This value is one of the constants defined in the panel event actions enumeration, which is described on page 3-101. This field is only meaningful for filtering, and is used for parsing.
errorStringId
The ID of the 'STR ' resource to put in the error alert. A value of 0 in this field indicates that there is no error string to display.
theFormat
The current format. This is only meaningful in a Custom Page Setup dialog box.
refCon
A reference constant for use by the generator of the panel.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help